package com.newjiabo.common.ski.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * {类内容}
 *
 * @author CaoMengHui.
 * @version 1.0
 * @since 2023/9/15 9:33
 */
@Configuration
@ConfigurationProperties(prefix = "wechat")
public class WeChatConfig {
    private static String notifyUrl;
    private static String refundNotifyUrl;
    private static String mchId;
    private static String appid;
    private static String secret;
    private static String miniProgramAppid;
    private static String miniProgramSecret;
    private static String apiclientCertp12;
    private static String apiclientCert;
    private static String apiclientKey;
    private static String wechatPayCert;
    private static String wechatPaySerial;
    private static String apiV3Key;

    /**
     * token默认过期时间
     */
    private long tokenExpireTime = 60;

    public static String getNotifyUrl() {
        return notifyUrl;
    }

    public void setNotifyUrl(String notifyUrl) {
        WeChatConfig.notifyUrl = notifyUrl;
    }

    public static String getRefundNotifyUrl() {
        return refundNotifyUrl;
    }

    public void setRefundNotifyUrl(String refundNotifyUrl) {
        WeChatConfig.refundNotifyUrl = refundNotifyUrl;
    }

    public static String getMchId() {
        return mchId;
    }

    public void setMchId(String mchId) {
        WeChatConfig.mchId = mchId;
    }

    public static String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        WeChatConfig.appid = appid;
    }

    public static String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        WeChatConfig.secret = secret;
    }

    public static String getMiniProgramAppid() {
        return miniProgramAppid;
    }

    public void setMiniProgramAppid(String miniProgramAppid) {
        WeChatConfig.miniProgramAppid = miniProgramAppid;
    }

    public static String getMiniProgramSecret() {
        return miniProgramSecret;
    }

    public void setMiniProgramSecret(String miniProgramSecret) {
        WeChatConfig.miniProgramSecret = miniProgramSecret;
    }

    public static String getApiclientCertp12() {
        return apiclientCertp12;
    }

    public void setApiclientCertp12(String apiclientCertp12) {
        WeChatConfig.apiclientCertp12 = apiclientCertp12;
    }

    public static String getApiclientCert() {
        return apiclientCert;
    }

    public void setApiclientCert(String apiclientCert) {
        WeChatConfig.apiclientCert = apiclientCert;
    }

    public static String getApiclientKey() {
        return apiclientKey;
    }

    public void setApiclientKey(String apiclientKey) {
        WeChatConfig.apiclientKey = apiclientKey;
    }

    public static String getWechatPayCert() {
        return wechatPayCert;
    }

    public void setWechatPayCert(String wechatPayCert) {
        WeChatConfig.wechatPayCert = wechatPayCert;
    }

    public static String getWechatPaySerial() {
        return wechatPaySerial;
    }

    public void setWechatPaySerial(String wechatPaySerial) {
        WeChatConfig.wechatPaySerial = wechatPaySerial;
    }

    public static String getApiV3Key() {
        return apiV3Key;
    }

    public void setApiV3Key(String apiV3Key) {
        WeChatConfig.apiV3Key = apiV3Key;
    }
}
